package com.alex;

import com.alex.dao.UserMapper;
import com.alex.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class Application {

    public static void main(String[] args) {
        SqlSession sqlSession = MyBatisUtils.getSqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        System.out.println(mapper);
        System.out.println(mapper.getUser(1));
    }
}
